package ar.com.vates.vsp.capitulo4.excepciones;
import java.util.Random;





public class Miclase {


 public int calcular(){
	 int rad;
	 Random rnd = new Random();	

	 rad = (int) (rnd.nextDouble() * 2);
	 
	 try { if (rad ==0) {
		 throw new MiExcepcion();
		
	 } 
	      else {
				return rad;
				
			}

		}catch (MiExcepcion e) {

		System.out.println(e.getMenssage());
		
	}
	
	
	
	 
	 
	 
	 
	 
	 
	 
	 return 0;	
}


}
